home *** CD-ROM | disk | FTP | other *** search
/ AI Game Programming Wisdom / AIGameProgrammingWisdom.iso / SourceCode / 06 General Architectures / 02 McLean / Listing4.cpp < prev   
Encoding:
Text File  |  2001-12-09  |  653 b   |  23 lines

  1. /* Copyright (C) Alex McLean, 2001. 
  2.  * All rights reserved worldwide.
  3.  *
  4.  * This software is provided "as is" without express or implied
  5.  * warranties. You may freely copy and compile this source into
  6.  * applications you distribute provided that the copyright text
  7.  * below is included in the resulting source code, for example:
  8.  * "Portions Copyright (C) Alex McLean, 2001"
  9.  */
  10.  
  11. BOOL CCharacter::CanBeExcludedFromUpdate( void )
  12. {
  13.     if( TRUE == m_bCanNeverBeExcluded ) {
  14.         return FALSE;
  15.     }
  16.     if( IsDead() ) {    
  17.         return TRUE;
  18.     }
  19.     if( m_DistanceToPlayer > CUTOFF_THRESHOLD )    {
  20.         return TRUE;
  21.     }    
  22. }
  23.